<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array( 
    'id'=>'photocat-form', 
    'enableAjaxValidation'=>false, 
)); ?>

    <p class="help-block">Поля с <span class="required">*</span> обязательны для заполнения.</p> 

    <?php echo $form->errorSummary($model); ?>

    <?php echo $form->textFieldRow($model,'name',array('class'=>'span5', 'maxlength'=>255)); ?>

    <?php echo $form->textAreaRow($model,'description',array('rows'=>6, 'cols'=>50, 'class'=>'span8')); ?>

    <?php // echo $form->textFieldRow($model,'hide',array('class'=>'span5','maxlength'=>4)); ?>
    
    <br />
    <?php echo $form->dropDownList($model, 'hide', array('show'=>'Опубликовать', 'hide'=>'Не опубликовывать'), array('class'=>'span2', 'style'=>'width:170px'));  ?>

    <div class="form-actions"> 
        <?php $this->widget('bootstrap.widgets.TbButton', array( 
            'buttonType'=>'submit', 
            'type'=>'primary', 
            'label'=>$model->isNewRecord ? 'Создать' : 'Сохранить', 
        )); ?>
    </div> 

<?php $this->endWidget(); ?>